package com.lagou.io;
/*
 * PackageName: com.lagou.io
 * ClassName:   Resources
 * Author:   zhang
 * Date:     Created in 2020/9/25
 * Description:
 * History:
 * <author>        <time>             <version>          <desc>
 * 作者姓名         修改时间            版本号              描述
 * zhang           2020/9/25      1.0
 */

import java.io.InputStream;

/**
 * Title:
 * Project: IPersistent_test
 *
 * @author ZhangKe
 * Created on 2020/9/25
 */
public class Resources {

    //根据配置文件的路径，将配置文件加载成字节输入流，存储在内存中
    public static InputStream getResourceAsStream(String path){

        InputStream resourceAsStream = Resources.class.getClassLoader().getResourceAsStream(path);
        return resourceAsStream;

    }
}
